package com.galaxy.provider.order.api.fallback;

import com.galaxy.provider.order.api.UserFeignClient;
import org.springframework.stereotype.Component;

/**
 * 用户接口调用失败处理接口实现类
 *
 * @author caijb
 * @version 1.0.0
 * @date 2018-10-19 16:23
 */
@Component
public class UserFeignFallback implements UserFeignClient {
    /**
     * 对应service-user微服务中的URL
     *
     * @param id
     * @return
     */
    @Override
    public String getUser(String id) {
        return "调用接口错误";
    }

    /**
     * 对应service-user微服务中的URL
     *
     * @return
     */
    @Override
    public String listUsers() {
        return "调用接口错误";
    }
}
